//
// Created by gummybear on 24-7-1.
//

#ifndef LEETCODE_COMMON_H
#define LEETCODE_COMMON_H

#include <iostream>
#include <bits/stdc++.h>

struct ListNode {
    int val;
    struct ListNode *next;
    ListNode(int x) : val(x), next(nullptr) {}
};

struct TreeNode {
    int val{0};
    struct TreeNode* left{nullptr};
    struct TreeNode* right{nullptr};
    TreeNode(int value) : val(value), left(nullptr), right(nullptr) {}
};


#endif //LEETCODE_COMMON_H
